import http from '@/utils/request/http'

//获取token
const getToken = (params: { username: string, password: string, type: number }) => {
    return http.post('/v1/auth/getToken', params,{successTip:false})
}

//通过token获取到用户所有信息
const getUserInfo = () => {
    return http.post('/v1/auth/getUserInfo', {},{successTip:false})
}


export default {
    getToken,
    getUserInfo
}